// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import { Message } from 'element-ui'


import Less from 'less'
import VueRouter from 'vue-router'
import Http from './utils/http.js'
import Urls from './utils/urls.js'

import{ HTTP }from './utils/http.js'

//把http 挂在Vue 整个实例属性方便全局调用
Vue.prototype.$http = Http
Vue.prototype.$http1 = HTTP
Vue.prototype.$urls = Urls

// 设置全局提示消息
Vue.prototype.$message = Message

Vue.use(Less)
Vue.use(ElementUI)

Vue.config.productionTip = false
Vue.use(VueRouter)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})